﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared
{
    public class ResultVO
    {
        public string status { get; set; }
        public object result { get; set; }

        public string message { get; set; }
        public int? code { get; set; }

        /// <summary>
        /// 耗时(单位：毫秒)
        /// </summary>
        public long usedTime { get; set; } = 0;

        public static string SUCCESS_STATUS = "success";
        public static string FAILURE_STATUS = "fail";
        public static int SUCCESS_CODE = 200;
        public static int FAILURE_CODE = 500;

        public ResultVO(string status, object data, string message, int code)
        {
            this.status = status;
            this.result = data;
            this.message = message;
            this.code = code;
        }

       
    }
}
